<?php $controller_id = Yii::$app->controller->id;?>
<div class="list-group">
    <a href="/admin/default" class="list-group-item <?php if($controller_id == 'default'){echo 'active';}?>">
        控制首页
    </a>
    <a href="/admin/qa" class="list-group-item <?php if($controller_id == 'qa'){echo 'active';}?>">问答管理</a>
    <a href="/admin/article" class="list-group-item <?php if($controller_id == 'article'){echo 'active';}?>">文章管理</a>
    <a href="/admin/comments" class="list-group-item <?php if($controller_id == 'comments'){echo 'active';}?>">评论管理</a>
    <a href="/admin/users" class="list-group-item <?php if($controller_id == 'users'){echo 'active';}?>">用户管理</a>
    <a href="/admin/setting" class="list-group-item <?php if($controller_id == 'setting'){echo 'active';}?>">系统设置</a>
</div>